package com.wugh.fast.kernel.util.exception;

import com.wugh.fast.kernel.core.enums.EnumInterface;
import com.wugh.fast.kernel.core.enums.FastExceptionEnum;
import com.wugh.fast.kernel.core.exception.FastAbstractException;

/**
 * 说明: 拷贝工具拷贝异常
 *
 * @author wugh
 * @date 2019-01-24 20:37
 */
public class FastCopyException extends FastAbstractException {
    @Override
    public EnumInterface<Integer> getExceptionEnum() {
        return FastExceptionEnum.FAST_GLOBAL_EXCEPTION;
    }

    public FastCopyException(Class<? extends Object> clazz) {
        super(String.format("%s 类缺少无参构造函数或无无权限参构造函数,导致创建对象失败!", clazz.getName()));
    }

    public FastCopyException(Class<? extends Object> clazz, Throwable cause) {
        super(String.format("%s 类缺少无参构造函数或无无权限参构造函数,导致创建对象失败!", clazz.getName()), cause);
    }

    public FastCopyException() {
    }

    public FastCopyException(String message) {
        super(message);
    }

    public FastCopyException(String message, Throwable cause) {
        super(message, cause);
    }

    public FastCopyException(Throwable cause) {
        super(cause);
    }

    public FastCopyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
